package jdk_proxy;

import static_proxy.SellTickets;

public class Client {
    public static void main(String[] args) {
        // 1.创建代理工厂对象
        ProxyFactory factory = new ProxyFactory();
        // 2.使用工厂对象获取代理对象
        SellTickets proxyObject = factory.getProxyObject();
        // 3.代理对象调用sell
        proxyObject.sell();

        System.out.println(proxyObject.getClass());

        while (true) {}
    }
}
